<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_text.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/Subscribe/Subscribe.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '消息通知模板',
                    name: 'Subscribe',
                    url: "/Subscribe/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {"subscribeType":"","merchantCode":"","merchantName":"","tempID":""},
                editFormOptions: [[
                                 {"title":"模板id","field":"tempID","type":"text","required":true,},{"title":"订阅消息类型","required":true,"field":"subscribeType","type":"select","dataKey": "subscribeType"}],
                           ],
                searchFormFields: {"subscribeType":"","tempID":""},
                searchFormOptions: [[{"title":"模板id","field":"tempID","type":"text","required":true,},{"title":"订阅消息类型","required":true,"field":"subscribeType","type":"select","dataKey": "subscribeType"}]],
                        columns: [{field:'createDate',title:'创建时间',type:'datetime',width:90,hidden:true,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:180,hidden:true,align:'left'},
                       {field:'id',title:'主键',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'merchantCode',title:'商户编码',type:'string',width:220,hidden:true,align:'left'},
                       {field:'merchantName',title:'商户名称',type:'string',width:220,hidden:true,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:180,hidden:true,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:90,hidden:true,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'rspparam',title:'参数',type:'string',width:220,align:'left',sortable:true},
                       {field:'subscribeType',title:'订阅消息类型', bind: { key:"subscribeType", data: [] },type:'string',width:220,align:'left'},
                       {field:'tempID',title:'模板id',type:'int',width:90,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
<style lang="scss">

.Subscribe {
  .ivu-form-item-label {
    //   border:1px solid red; 
      width: 108px !important;
  }
  .ivu-form-item-content{
      margin-left: 109px !important;
  }
}
</style>